/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.swta;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.resources.StyleSheetReference;
import org.apache.wicket.model.PropertyModel;

/**
 *
 * @author JKorreck
 */
public class Page1 extends WebPage {

    private int clickCount = 0;

    public Page1() {
        add(new Label("title", "Page1 Title"));
        add(new StyleSheetReference("stylesheet", Page1.class, "style.css"));


        final Link clickLink = new Link("clickLink") {

        public void onClick() {
            clickCount++;
        }
    };

    clickLink.add(new Label("clickCount", new PropertyModel(this, "clickCount")));
    add(clickLink);
    }

    

}
